<html>
	<head>
		<title>Loop</title>
		<script type="text/javascript"> 
			function loops(){
				document.writeln("<h1>Contagem Direta</h1>");
				for(var nValue = 1; nValue <= 10; nValue++)
				{
					document.writeln(nValue + "<br />");
				}
				document.writeln("<h1>Contagem Inversa</h1>");
				for(var nValue = 10; nValue >= 1; nValue--)
				{
					document.writeln(nValue + "<br />");
				}
			}
		</script> 
	</head>
	<body onload="loops()">
		<p>Hello Bela!</p>
	</body>
</html>
